package com.xcity.pomelo.request;

import com.xcity.pomelo.PomeloRoute;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.PomeloPacket;

@PomeloMessage(route = PomeloRoute.VIEW_ADVENTURE_ATTACK_PLAYER)
public class ViewAdventureAttackPlayerRequest extends PomeloPacket {
	
	private long id;
	private byte type; // 0-拆建筑, 1-占领建筑
	
	public static final byte TYPE_ATTACK = 0, TYPE_CAPTURE = 1;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public byte getType() {
		return type;
	}

	public void setType(byte type) {
		this.type = type;
	}
	
	public boolean isValid() {
		return type == TYPE_ATTACK || type == TYPE_CAPTURE;
	}
	
}
